
export { }
// let gender: "男" | "女"

// gender = "男"
// let fnadd = function (params:"男"|"女") {
//   console.log(params);
// }


// 字面量 不会进入编译的结果
// type Gender = "男"|"女"
// let gender:Gender
// gender = "男"
// let fnadd = function (params:Gender) {
//   console.log(params);
// }


enum Gender {
  male = "男",
  female = "女"
}

let gender: Gender
gender = Gender.female
console.log(gender);
